package cn.xianshu.shopping_cart.mapper;


import cn.xianshu.basic.mapper.BasicMapper;
import cn.xianshu.pet.domain.Pet;
import cn.xianshu.shopping_cart.domain.ShoppingCart;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ShoppingCartMapper extends BasicMapper<ShoppingCart> {

    void addcart(Pet pet);

    /**
     * 添加购物车
     * @param id
     */
    void addId(Long id);

    /**
     * 查询购物车数据 展示
     * @return
     */
    ShoppingCart loadByAll();

    List<ShoppingCart> loadByCal(@Param("ids") List<Long> ids);
}
